<?php

namespace teach\service;

use Yii;

class WeChat
{
    /**
     * 存入用户微信绑定的手机号
     * @param $map
     * @param $where
     * @return int
     */
    public function wetChatPhone($map, $where)
    {
        $sql = "UPDATE edu_user SET {$map} WHERE {$where}";
        return Yii::$app->db->createCommand($sql)->execute();

    }
}